package com.kaifamiao.month03.day0316;

public class Cookies {

    String number; // 流水号 日期时间（精确到毫秒) 20220317152355111
    int operation; // 操作 0 存钱 1 取钱
    double money; // 金额
    String phone; // 账号
    String card; // 卡号
    public String toString() {
        if(operation == 0){
            return "流水号：" + number + ", " + phone + " 的 " + card + " 存款 " + money + " 元";
        }else{
            return "流水号：" + number + ", " + phone + " 的 " + card + " 取款 " + money + " 元";
        }
    }
}
